package org.marsdonne.commons.wechat;

import org.marsdonne.archives.Client;

import java.util.Map;

public interface AccessTokenServ {
    String API_WECHAT_BASEURL = "https://api.weixin.qq.com";
    String API_GET_ACCESS_TOKEN_URL = API_WECHAT_BASEURL + "/cgi-bin/token?grant_type=client_credential&appid={appId}&secret={secret}";

    enum Resp4Token {
        AccessToken("access_token"), ExpiresIn("expires_in");
        public final String value;

        Resp4Token(String value) {
            this.value = value;
        }
    }

    Map getToken(Client client);
}
